package cn.jinjimi.app.poster;

import com.google.gson.annotations.SerializedName;
import cn.jinjimi.base.preference.PreferenceManager;
import cn.jinjimi.base.util.GsonUtils;
import cn.jinjimi.app.bean.SharePrefKeys;

/**
 * Created by lforxeverc on 2016/10/11.
 */

public class PosterConfig {
    public static Info getConfig() {
        String data = PreferenceManager.getStringData(SharePrefKeys.PREF_POSTER_CONFIG);
        if (data != null) {
            return GsonUtils.fromJson(data, Info.class);
        }
        return null;
    }

    public class Info {
        @SerializedName("enable_show_sharecount")
        public boolean showShareCount;
    }
}
